import request from '@/utils/request'

// 查询证书类型列表
export function listCredentialsType(query) {
  return request({
    url: '/system/credentialsType/list',
    method: 'get',
    params: query
  })
}

// 查询证书类型详细
export function getCredentialsType(credentialsTypeId) {
  return request({
    url: '/system/credentialsType/' + credentialsTypeId,
    method: 'get'
  })
}
// 查询证书下拉树结构
export function treeselect() {
  return request({
    url: '/system/credentialsType/treeselect',
    method: 'get'
  })
}

// 新增证书类型
export function addCredentialsType(data) {
  return request({
    url: '/system/credentialsType',
    method: 'post',
    data: data
  })
}

// 修改证书类型
export function updateCredentialsType(data) {
  return request({
    url: '/system/credentialsType',
    method: 'put',
    data: data
  })
}

// 删除证书类型
export function delCredentialsType(credentialsTypeId) {
  return request({
    url: '/system/credentialsType/' + credentialsTypeId,
    method: 'delete'
  })
}

// 导出证书类型
export function exportCredentialsType(query) {
  return request({
    url: '/system/credentialsType/export',
    method: 'get',
    params: query
  })
}


